package com.ruoyi.deal.controller.mobile;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.deal.service.ICcsReceiveLocationService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * mobile 收货地址 Controller
 *
 * @author zzh
 * */
@RestController
@RequestMapping("/mobile/location")
@Api(tags = "移动端收货地址")
public class ReceiveLocationController extends BaseController {

    @Autowired
    private ICcsReceiveLocationService ccsReceiveLocationService;

    @GetMapping
    @ApiOperation("查询用户对应的收货地址列表")
    public AjaxResult list() {
        return ccsReceiveLocationService.getReceiveLocationsVOByUserId(getUserId());
    }

}
